﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace devtm.Editor.Configuration.Command
{
    public class CommandAction : ICommand
    {
        private devtm.Configuration.IElementSection section;
        private TypeChange typeChange;
        private object instance;
        private Action Redo_2;
        private Action Undo_2;

        public CommandAction(devtm.Configuration.IElementSection section, TypeChange typeChange, object instance, Action Redo_2, Action Undo_2)
        {
            // TODO: Complete member initialization
            this.section = section;
            this.typeChange = typeChange;
            this.instance = instance;
            this.Redo_2 = Redo_2;
            this.Undo_2 = Undo_2;
        }

        public void Redo()
        {
            Redo();
        }

        public void Undo()
        {
            Undo();
        }
    }
}
